//
//  NSString+Extension.m
//  HonlivApp
//
//  Created by admin on 2017/6/26.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import "NSString+Extension.h"

@implementation NSString (Extension)

-(NSString *)stringWithYMD{
    NSDateFormatter *f =[NSDateFormatter new];
    f.dateFormat = @"yyyy/MM/dd HH:mm:ss";
    NSDate *date = [f dateFromString:self];
    NSDateFormatter *f2 = [NSDateFormatter new];
    f2.dateFormat = @"yyyy-MM-dd";
    NSString *fb_date = [f2 stringFromDate:date];
    return fb_date;
}

@end
